<template>
  <div class="title">
    <span>
      <slot name="default"></slot>
    </span>
  </div>
</template>

<style lang="less" scoped>
.title {
  background-color: #fff;
  text-align: center;
  padding: 18px 0;
  font-size: 18px;

  span {
    position: relative;

    &::before {
      content: '';
      display: block;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      position: absolute;
      left: -18px;
      top: 50%;
      margin-top: -4px;
      background-color: #d4c0a7;
    }

    &::after {
      content: '';
      display: block;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      position: absolute;
      right: -18px;
      top: 50%;
      margin-top: -4px;
      background-color: #d4c0a7;
    }
  }

}
</style>